﻿using System;
using Coldairarrow.DotNettyRPC;
using Common;


namespace Client
{
    class Program
    {
        static void Main()
        {
            IHello client = RPCClientFactory.GetClient<IHello>("127.0.0.1", 9999);
            client.SayHello("Hello");

            IHello2 client2 = RPCClientFactory.GetClient<IHello2>("127.0.0.1", 9999);
            client2.SayHello("Hello2");
            Console.WriteLine("完成");
            Console.ReadLine();
        }
    }
}
